package com.macro.mall.service;

import com.macro.mall.common.api.CommonResult;
import com.macro.mall.dto.MinioUploadDto;
import org.springframework.web.multipart.MultipartFile;

public interface MinioService {
    /**
     * 普通文件上传
     */
    CommonResult<MinioUploadDto> upload(MultipartFile file);

    /**
     * 生成数字二维码并上传到MinIO
     */
    CommonResult<MinioUploadDto> uploadQRCode(String number);

    /**
     * 删除文件
     */
    CommonResult<Void> delete(String objectName);
}
